<template>
  <a-modal
    :title="title"
    :visible="visible"
    :confirm-loading="confirmLoading"
    cancel-text="关闭"
    @ok="closeModal"
    @cancel="closeModal"
  >
    <a-spin :spinning="confirmLoading">
      详情
    </a-spin>
  </a-modal>
</template>

<script>
import ApiTree from '@/api/demo/demo';
import ImageUpload from '@/components/ImageUpload';
import { Slime } from '@/mixins/slime';
export default {
  name: 'demoModal',
  components: { ImageUpload },
  data() {
    return {
      title: '详情',
    };
  },
  mixins: [Slime],
  methods: {
    // 详情
    open(record) {
      this.visible = true;
    },
    // 弹窗-关闭
    closeModal() {
      this.confirmLoading = false;
      this.visible = false;
      this.form.resetFields();
      this.$emit('closeModal');
    },
  },
};
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
</style>